package com.cjack.frenchexcel.table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 商品发货记录表
 */
@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name="fe_sendgoods")
public class SendGoodsRecordTable implements Serializable {
    private static final long serialVersionUID = 6890619838492127805L;
    //数据库表里面的内容
    @Id
    @GeneratedValue( strategy = GenerationType.AUTO)
    private Long id;

    private String orderNo;//发货码
    //客户提出来的一个新的发货码生成规则 F+年+月+ 0001递增
    private String sendGoodsNoProfix;//F+年+月 这部分
    private Integer sendGoodsNoNumber;//0001这部分
    private String completeSendGoodsNoNumber;//完整的发票编号
    private Double totalAmount;//总金额
    private Double totalSellAmount;//总的商品销售金额
    private String goodsIds;//本次发货的商品的id列表
    private Date createTime;//发货时间
    private Date updateTime = new Date();
    private Long adminUserId;//发货人
    private String sellInvoicePdf;//销售发票 pdf
    private String sellInvoiceImg;//销售发票 Img
    private String customsClearanceFormPdf;//出关单 pdf
    private String customsClearanceFormImg;//出关单 img
    private String trackingNumber;//快递单号
    private Date uploadCustomsClearanceFormTime;//出关单 上传时间
    private String reviewStatus;//上传的发票的审核状态  PASS 审核通过 REJECT 审核拒绝
    private Date reviewTime;//出关单 审核时间
    private String reviewMemo;//发票审核 备注
}

